import request from '@/utils/request'

export function queryData(data) {
  return request({
    url: '/admin/tentant/query',
    method: 'post',
    data
  })
}

export function getAll() {
  return request({
    url: '/admin/tentant/all',
    method: 'get'
  })
}

export function getDetail(id) {
  return request({
    url: `/admin/tentant/detail/${id}`,
    method: 'get'
  })
}


export function add(data) {
  return request({
    url: '/admin/tentant/add',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: `/admin/tentant/save`,
    method: 'post',
    data
  })
}

export function deletes(id) {
  return request({
    url: `/admin/tentant/delete/${id}`,
    method: 'get'
  })
}

export function restore(id) {
  return request({
    url: `/admin/tentant/restore/${id}`,
    method: 'get'
  })
}
